<html>
    <meta charset="utf-8"></meta>
    <?php
        include("logado/auxiliar.php");
        if (!isset($_SESSION["telausuario"]["idPessoa"]) || !isset($_SESSION["telausuario"]["email"])) {
            header("Location: ../index.php");
        }
        
    ?>
    <head>
        <link rel='stylesheet' type='text/css' href='css/index.css' />
        <meta charset="utf-8" />
        <?php
            
            include 'menu_logado.php';
            echo "<title>Sir $nome $sobrenome</title>";
        ?>
    </head>

    <body>
        <div id="dados">
            <h3>Dados pessoais</h3>
            <?php
            echo "Nome: $nome $sobrenome";
            ?><br><?php
            echo "Email: $email";
            ?><br><?php
            echo "função: $funcao";
            ?><br><?php
            echo "idFuncao: $tipoPessoa";
            ?>
        </div>
    </body>
</html>
